/**
 * Created By zhangQ 2018/2/27
 */

// 用户中心
const userCenter = () => import(/* webpackChunkName: "userCenter" */ '@views/backEnd/userCenter/userCenter.vue')
const index = () => import(/* webpackChunkName: "backEnd" */ '@views/backEnd')
const board = () => import(/* webpackChunkName: "backEnd" */ '@views/backEnd/board')
const board2 = () => import(/* webpackChunkName: "backEnd" */ '@views/backEnd/board2')
// 今日看板
const todayBoard = () => import(/* webpackChunkName: "todayBoard" */ '@views/backEnd/todayBoard/todayBoard.vue')
// 物流监测覆盖版
const commonInspection = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/logisticsMonitoring/commonInspection.vue')
const orderListInspection = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/logisticsMonitoring/orderListInspection.vue')
const fleetOrderList = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/logisticsMonitoring/fleetOrderList.vue')
const topFleetOrderList = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/logisticsMonitoring/topFleetOrderList.vue')
const stationCommonInspection = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/stationLogisticsMonitoring/commonInspection.vue')
const stationOrderListInspection = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/stationLogisticsMonitoring/orderListInspection.vue')
const tracking = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/stationLogisticsMonitoring/tracking.vue')
const allOrders = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/allOrders.vue')
const emptyTrain = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/emptyTrain.vue')
const fullTrain = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/fullTrain.vue')
const waitingForTrans = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/waitingForTrans.vue')
const transportation = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/transportation.vue')
const distribution = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/distribution.vue')
const orderDone = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/orderDone.vue')
const mainOrderTruckid = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/mainOrderTruckid.vue')
const logisticsInspection = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/logisticsInspection.vue')
const ChangjiPowerStation = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/ChangjiPowerStation.vue')
const PredictionPowerStation = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/PredictionPowerStation.vue')
const comingStationInspection = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/comingStationInspection.vue')
const orderList = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/mainOrder/orderList.vue')
const stationmember = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/stationMember/stationMember.vue')
const requirementsList = () => import(/* webpackChunkName: "mainOrder" */ '@views/backEnd/requirements/requirementsList.vue')
const freightDynamics = () => import(/* webpackChunkName: "orderTrain" */ '@views/backEnd/orderTrain/freightDynamics.vue')
const trackCode = () => import(/* webpackChunkName: "orderTrain" */ '@views/backEnd/orderTrain/trackCode.vue')
const queryFreight = () => import(/* webpackChunkName: "orderTrain" */ '@views/backEnd/orderTrain/queryFreight.vue')
const productRequirementList = () => import(/* webpackChunkName: "productRequirement" */ '@views/backEnd/productRequirement/productRequirementListAll.vue')
const productRequirementAdd = () => import(/* webpackChunkName: "productRequirement" */ '@views/backEnd/productRequirement/productAdd.vue')
const productRequirementEdit = () => import(/* webpackChunkName: "productRequirement" */ '@views/backEnd/productRequirement/productEdit.vue')
const billingList = () => import(/* webpackChunkName: "productRequirement" */ '@views/backEnd/productRequirement/billingList.vue')
const billingAdd = () => import(/* webpackChunkName: "productRequirement" */ '@views/backEnd/productRequirement/billingAdd.vue')
const billingEdit = () => import(/* webpackChunkName: "productRequirement" */ '@views/backEnd/productRequirement/billingEdit.vue')
// import '@views/backEnd/fleetControl/truckList.vue'
const fleetList = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/stationControl/fleetList.vue')
const receiverManager = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/stationControl/receiverManager.vue')
const truckList = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/fleetControl/truckList.vue')
const driverList = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/fleetControl/driverList.vue')
const abilityList = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/fleetControl/abilityList.vue')
const receiverList = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/fleetControl/receiver/receiverList.vue')
const driverCurrentPosition = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/fleetControl/driverCurrentPosition.vue')
const truckCurrentPosition = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/fleetControl/truckCurrentPosition.vue')
const containerList = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/containerControl/containerList.vue')
const orderReportNew = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/orderLiquidation/orderReportNew.vue')
const orderReportSHZ = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/orderLiquidation/orderReportSHZ.vue')
const orderReportStation = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/orderLiquidation/orderReportStation.vue')
const orderReportFleet = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/orderLiquidation/orderReportFleet.vue')
const orderReportForFleet = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/orderLiquidation/orderReportFleetV3.vue')
const orderReport = () => import(/* webpackChunkName: "fleetControl" */ '@views/backEnd/orderLiquidation/orderReport.vue')
const inventoryInfo = () => import(/* webpackChunkName: "inventory" */ '@views/backEnd/inventory/inventoryInfo.vue')
const inventoryInfoCenter = () => import(/* webpackChunkName: "inventory" */ '@views/backEnd/inventory/inventoryInfoCenter.vue')
const inventoryInfoC = () => import(/* webpackChunkName: "inventory" */ '@views/backEnd/inventory/inventoryInfoC.vue')
const inboundTruck = () => import(/* webpackChunkName: "arrivalManage" */ '@views/backEnd/arrivalManage/inboundTruck.vue')
const outboundTruck = () => import(/* webpackChunkName: "arrivalManage" */ '@views/backEnd/arrivalManage/outboundTruck.vue')
const todayContainerDetail = () => import(/* webpackChunkName: "sourceContainerManage" */ '@views/backEnd/sourceContainerManage/todayContainerDetail.vue')
const stationContainerDetail = () => import(/* webpackChunkName: "sourceContainerManage" */ '@views/backEnd/sourceContainerManage/stationContainerDetail.vue')
const distributionForeCast = () => import(/* webpackChunkName: "fleetControl" */ '@/views/backEnd/fleetControl/distributionForeCast.vue')
// 操作员空箱
const railwayEmptyContainerList = () => import(/* webpackChunkName: "railwayEmptyContainer" */ '@views/backEnd/railwayEmptyContainer/railwayEmptyContainerList.vue')
// 对铁账户
const railwayAccountList = () => import(/* webpackChunkName: "railwayAccount" */ '@views/backEnd/railwayAccount/railwayAccountList.vue')
const dutyRoom = () => import(/* webpackChunkName: "railwayAccount" */ '@views/backEnd/dutyRoom/index.vue')
const mainOrderDutyRoom = () => import(/* webpackChunkName: "railwayAccount" */ '@views/backEnd/dutyRoom/mainOrderDutyRoom.vue')
const subOrderRecordRoom = () => import(/* webpackChunkName: "railwayAccount" */ '@views/backEnd/dutyRoom/subOrderRecordRoom.vue')
const dutyRoomStatistics = () => import(/* webpackChunkName: "railwayAccount" */ '@views/backEnd/dutyRoom/dutyRoomStatistics.vue')
const managerUser = () => import(/* webpackChunkName: "railwayAccount" */ '@views/backEnd/managerUser/index.vue')
const stationFleetControl = () => import(/* webpackChunkName: "stationFleetControl" */ '@views/backEnd/stationFleetControl/stationFleetControl.vue')
// 场站点亮计划
const lightStation = () => import(/* webpackChunkName: "lightStation" */ '@views/backEnd/lightStation/index.vue')
// 接取业务
const fetchingBusinessStation = () => import(/* webpackChunkName: "fetchingBusiness" */ '@views/backEnd/fetchingBusiness/fetchingBusinessStation.vue')
const fetchingBusinessFleet = () => import(/* webpackChunkName: "fetchingBusiness" */ '@views/backEnd/fetchingBusiness/fetchingBusinessFleet.vue')
// 昌热榜单
const changreBangdan = () => import('@views/backEnd/bangDan/ChangreBangdan.vue')
// 站内报表
const stationReportWb = () => import(/* webpackChunkName: "stationReport" */ '@views/backEnd/stationReport/stationReportWB.vue') // 乌北报表
// 小黄山报表
const orderReportInput = () => import('@views/backEnd/orderLiquidation/orderReportInput.vue')
const orderDetails = () => import('@views/backEnd/orderLiquidation/orderReportDetails.vue')
const orderMonth = () => import('@views/backEnd/orderLiquidation/orderReportMonth.vue')
const orderZxstatement = () => import('@views/backEnd/orderLiquidation/orderReportZxstatement.vue')
const orderMonthDetail = () => import('@views/backEnd/orderLiquidation/xhsReport/orderMonthDetail.vue')
const orderAllStatistics = () => import('@views/backEnd/orderLiquidation/xhsReport/orderAllStatistics.vue')
// 地址管理
const userAddressManager = () => import('@views/backEnd/userAddress/userAddressManager.vue')
// 集装箱到站预报
const containerLogisticsMonitoring = () => import(/* webpackChunkName: "containerPlatform/containerManagement" */ '@views/containerPlatform/containerManagement/containerLogisticsMonitoring')
const containerPlatformContainerList = () => import(/* webpackChunkName: "containerPlatform/containerManagement" */ '@views/containerPlatform/containerManagement/containerList')
const overTimeWarning = () => import(/* webpackChunkName: "containerPlatform/containerManagement" */ '@views/containerPlatform/containerManagement/overTimeWarning')
const overQuantityWarning = () => import(/* webpackChunkName: "containerPlatform/containerManagement" */ '@views/containerPlatform/containerManagement/overQuantityWarning')
const containerReport = () => import(/* webpackChunkName: "containerPlatform/containerManagement" */ '@views/containerPlatform/containerManagement/containerReport')
// 小循环报表
const flowReport = () => import(/* webpackChunkName: "containerPlatform/containerManagement" */ '@views/containerPlatform/containerReport/flowReport')
// 路由是否验证
let required = true
let routers = []
/* 前端首页根路由 */
let backEndRouter = {
  path: '/back_end',
  name: 'backEnd',
  icon: 'speedometer',
  component: index,
  props: true,
  redirect: '/back_end/board',
  meta: { role: [], activeMenu: 'backEnd', title: '首页', required: required },
  children: []
}
/* 数据看板 star */
let indexRouter = {
  path: 'board',
  name: 'board',
  component: board,
  icon: 'speedometer',
  meta: { role: [], activeMenu: 'board', title: '数据看板' }
}
backEndRouter.children.push(indexRouter)
/* 数据看板 star */
let BoardRouter = {
  path: 'board2',
  name: 'board2',
  component: board2,
  icon: 'speedometer',
  meta: { role: [], activeMenu: 'board2', title: '今日看板' }
}
backEndRouter.children.push(BoardRouter)
/* 今日看板 star */
let todayBoardRouter = {
  path: 'today_board',
  name: 'todayBoard',
  component: todayBoard,
  icon: 'speedometer',
  meta: { role: [], activeMenu: 'todayBoard', title: '今日看板' }
}
backEndRouter.children.push(todayBoardRouter)
/* 今日看板 star */
/* 物流监测 star */
let mainOrderRouter = {
  path: 'main_order',
  name: 'mainOrder',
  redirect: 'main_order/empty_train',
  icon: 'android-list',
  meta: { role: ['矿企', '电厂'], activeMenu: 'mainOrder', title: '物流监测' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'all_orders',
      name: 'allOrders',
      icon: 'stats-bars',
      component: allOrders,
      meta: { role: ['矿企', '电厂'], activeMenu: 'allOrders', title: '所有运单' }
    },
    {
      path: 'empty_train',
      name: 'emptyTrain',
      icon: 'stats-bars',
      component: emptyTrain,
      meta: { role: ['矿企', '电厂'], activeMenu: 'emptyTrain', title: '空车入线' }
    },
    {
      path: 'full_train',
      name: 'fullTrain',
      icon: 'stats-bars',
      component: fullTrain,
      meta: { role: ['矿企', '电厂'], activeMenu: 'fullTrain', title: '重车出线' }
    },
    {
      path: 'waiting_for_trans',
      name: 'waitingForTrans',
      icon: 'stats-bars',
      component: waitingForTrans,
      meta: { role: ['矿企', '电厂'], activeMenu: 'waitingForTrans', title: '待运输' }
    },
    {
      path: 'transportation',
      name: 'transportation',
      icon: 'stats-bars',
      component: transportation,
      meta: { role: ['矿企', '电厂'], activeMenu: 'transportation', title: '运输中' }
    },
    {
      path: 'distribution',
      name: 'distribution',
      icon: 'stats-bars',
      component: distribution,
      meta: { role: ['矿企', '电厂'], activeMenu: 'distribution', title: '配送中' }
    },
    {
      path: 'order_done',
      name: 'orderDone',
      icon: 'stats-bars',
      component: orderDone,
      meta: { role: ['矿企', '电厂'], activeMenu: 'orderDone', title: '运单完成' }
    },
    {
      path: 'main_order_truckid',
      name: 'mainOrderTruckid',
      icon: 'stats-bars',
      component: mainOrderTruckid,
      meta: { role: ['车队'], activeMenu: 'mainOrderTruckid', title: '主运单' }
    },
    {
      path: 'logistics_inspection',
      name: 'logisticsInspection',
      icon: 'stats-bars',
      component: logisticsInspection,
      meta: { activeMenu: 'logisticsInspection', title: '主运单' }
    },
    {
      path: 'coming_station_inspection',
      name: 'comingStationInspection',
      icon: 'stats-bars',
      component: comingStationInspection,
      meta: { activeMenu: 'comingStationInspection', title: '到站预报' }
    },
    {
      path: 'order_list',
      name: 'orderList',
      icon: 'stats-bars',
      component: orderList,
      meta: { activeMenu: 'orderList', title: '运单列表' }
    },
    // {
    //   path: 'prediction_power_station',
    //   name: 'PredictionPowerStation',
    //   icon: 'stats-bars',
    //   component: PredictionPowerStation,
    //   meta: { activeMenu: 'PredictionPowerStation', title: '到站预报(电厂)' }
    // },
    {
      path: 'distributionForeCast',
      name: 'distributionForeCast',
      icon: 'stats-bars',
      component: distributionForeCast,
      meta: { activeMenu: 'distributionForeCast', title: '派单预报' }
    },
    {
      path: 'prediction_power_station',
      name: 'PredictionPowerStation',
      icon: 'stats-bars',
      component: PredictionPowerStation,
      meta: { activeMenu: 'PredictionPowerStation', title: '到站预报1.0' }
    },
    {
      path: 'changji_power_station',
      name: 'ChangjiPowerStation',
      icon: 'stats-bars',
      component: ChangjiPowerStation,
      meta: { activeMenu: 'ChangjiPowerStation', title: '主运单(电厂)' }
    }
  ]
}
backEndRouter.children.push(mainOrderRouter)
/* 物流监测 end */
/* 物流监测覆盖版 star */
let logisticsMonitoringRouter = {
  path: 'logisticsMonitoring',
  name: 'logisticsMonitoring',
  redirect: 'logisticsMonitoring/commonInspection',
  icon: 'android-list',
  meta: { role: ['矿企', '电厂'], activeMenu: 'logisticsMonitoring', title: '物流监测(覆盖)' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'commonInspection',
      name: 'commonInspection',
      icon: 'stats-bars',
      component: commonInspection,
      meta: { activeMenu: 'commonInspection', title: '新运单列表' }
    },
    {
      path: 'orderListInspection',
      name: 'orderListInspection',
      icon: 'stats-bars',
      component: orderListInspection,
      meta: { activeMenu: 'orderListInspection', title: '新运单列表' }
    },
    {
      path: 'fleetOrderList',
      name: 'fleetOrderList',
      icon: 'stats-bars',
      component: fleetOrderList,
      meta: { activeMenu: 'fleetOrderList', title: '车队运单' }
    },
    {
      path: 'topFleetOrderList',
      name: 'topFleetOrderList',
      icon: 'stats-bars',
      component: topFleetOrderList,
      meta: { activeMenu: 'topFleetOrderList', title: '总车队运单' }
    }
  ]
}
backEndRouter.children.push(logisticsMonitoringRouter)
/* 物流监测覆盖版 end */
/* 场站物流监测 3.0 star */
let stationLogisticsMonitoringRouter = {
  path: 'stationLogisticsMonitoring',
  name: 'stationLogisticsMonitoring',
  redirect: 'stationLogisticsMonitoring/stationCommonInspection',
  icon: 'android-list',
  meta: { role: ['矿企', '电厂'], activeMenu: 'stationLogisticsMonitoring', title: '场站物流监测' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'stationCommonInspection',
      name: 'stationCommonInspection',
      icon: 'stats-bars',
      component: stationCommonInspection,
      meta: { activeMenu: 'stationCommonInspection', title: '到站预报' }
    },
    {
      path: 'tracking',
      name: 'tracking',
      icon: 'stats-bars',
      component: tracking,
      meta: { activeMenu: 'tracking', title: '到站预报' }
    },
    {
      path: 'stationOrderListInspection',
      name: 'stationOrderListInspection',
      icon: 'stats-bars',
      component: stationOrderListInspection,
      meta: { activeMenu: 'stationOrderListInspection', title: '运单列表' }
    }
  ]
}
backEndRouter.children.push(stationLogisticsMonitoringRouter)
/* 场站物流监测 3.0 end */
/* 磅单管理 star */
let bangDanRouter = {
  path: 'bang_dan',
  name: 'bangDan',
  redirect: 'bang_dan/changre_bangdan',
  icon: 'android-list',
  meta: { activeMenu: 'bangdan', title: '磅单管理' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'changre_bangdan',
      name: 'changreBangdan',
      icon: 'stats-bars',
      component: changreBangdan,
      meta: { activeMenu: 'changreBangdan', title: '磅单列表' }
    }
  ]
}
backEndRouter.children.push(bangDanRouter)
/* 磅单管理 end */
/* 进站管理 star */
let arrivalManage = {
  path: 'arrival_manage',
  name: 'arrivalManage',
  redirect: 'arrival_manage/inbound_truck',
  icon: 'android-list',
  meta: { activeMenu: 'arrivalManage', title: '进站管理' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'inbound_truck',
      name: 'inboundTruck',
      icon: 'stats-bars',
      component: inboundTruck,
      meta: { role: ['门卫'], activeMenu: 'inboundTruck', title: '即将进站汽车' }
    },
    {
      path: 'outbound_truck',
      name: 'outboundTruck',
      icon: 'stats-bars',
      component: outboundTruck,
      meta: { role: ['门卫'], activeMenu: 'outboundTruck', title: '即将出站汽车' }
    }
  ]
}
backEndRouter.children.push(arrivalManage)
/* 进站管理 end */
/* 箱情管理 star */
let sourceContainerManage = {
  path: 'source_container_manage',
  name: 'sourceContainerManage',
  redirect: 'source_container_manage/today_container_detail',
  icon: 'android-list',
  meta: { activeMenu: 'arrivalManage', title: '箱情管理' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'today_container_detail',
      name: 'todayContainerDetail',
      icon: 'stats-bars',
      component: todayContainerDetail,
      meta: { activeMenu: 'todayContainerDetail', title: '今日箱情' }
    },
    {
      path: 'station_container_detail',
      name: 'stationContainerDetail',
      icon: 'stats-bars',
      component: stationContainerDetail,
      meta: { activeMenu: 'stationContainerDetail', title: '场站箱情' }
    }
  ]
}
backEndRouter.children.push(sourceContainerManage)
/* 箱情管理 end */
/* 站内报表 star */
let stationReportRouter = {
  path: 'station_report',
  name: 'stationReport',
  redirect: 'station_report/station_report_wb',
  icon: 'android-list',
  meta: { activeMenu: 'arrivalManage', title: '智能报表' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'station_report_wb',
      name: 'stationReportWb',
      icon: 'stats-bars',
      component: stationReportWb,
      meta: { activeMenu: 'stationReportWb', title: '智能报表（乌北）' }
    }
  ]
}
backEndRouter.children.push(
  stationReportRouter)
/* 站内报表 end */
/* 货区货位 star */
let stationMemberRouter = {
  path: 'stationnum',
  name: 'stationnum',
  redirect: 'stationnum/station_member',
  icon: 'android-list',
  meta: { role: ['到站'], activeMenu: 'mainOrder', title: '货区货位' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'station_member',
      name: 'stationMember',
      icon: 'stats-bars',
      component: stationmember,
      meta: { role: ['矿企', '电厂'], activeMenu: 'stationMember', title: '货区货位' }
    }
  ]
}
backEndRouter.children.push(stationMemberRouter)
/* 货区货位 end */
/* 需求管理 star */
let requirementsRouter = {
  path: 'requirements',
  name: 'requirements',
  redirect: 'requirements/requirements_list',
  icon: 'android-list',
  meta: { role: ['电厂', '矿企'], activeMenu: 'requirements', title: '需求管理' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'requirements_list',
      name: 'requirementsList',
      icon: 'stats-bars',
      component: requirementsList,
      meta: { role: ['矿企', '电厂'], activeMenu: 'requirementsList', title: '需求列表' }
    }
  ]
}
backEndRouter.children.push(requirementsRouter)
/* 需求管理 end */
/* 订车动态 star */
let freightStatusRouter = {
  path: 'freight_dynamics',
  name: 'freightDynamics',
  icon: 'stats-bars',
  component: freightDynamics,
  meta: { role: ['电厂', '矿企'], activeMenu: 'freightDynamics', title: '订车动态' }
}
backEndRouter.children.push(freightStatusRouter)
/* 订车动态 end */
/* 空重车信息 star */
let trackcodeRouter = {
  path: 'track_code',
  name: 'trackCode',
  icon: 'stats-bars',
  component: trackCode,
  meta: { role: ['电厂', '矿企'], activeMenu: 'trackCode', title: '空重车信息' }
}
backEndRouter.children.push(trackcodeRouter)
/* 空重车信息 end */
/* 基础运价查询 star */
let queryFreightRouter = {
  path: 'query_freight',
  name: 'queryFreight',
  icon: 'stats-bars',
  component: queryFreight,
  meta: { role: ['电厂', '矿企'], activeMenu: 'queryFreight', title: '基础运价查询' }
}
backEndRouter.children.push(queryFreightRouter)
/* 基础运价查询 end */
/* 商情信息发布 star */
let productRequirementRouter = {
  path: 'product_requirement',
  name: 'productRequirement',
  redirect: 'product_requirement/product_requirement_list',
  icon: 'android-list',
  meta: { role: ['电厂', '矿企', '车队'], activeMenu: 'productRequirement', title: '商情信息' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'product_requirement_list',
      name: 'productRequirementList',
      icon: 'stats-bars',
      component: productRequirementList,
      meta: { activeMenu: 'productRequirementList', title: '联运商情' }
    },
    {
      path: 'product_requirement_add',
      name: 'productRequirementAdd',
      icon: 'stats-bars',
      component: productRequirementAdd,
      hidden: true,
      meta: {
        activeMenu: 'productRequirementList',
        title: '添加商情',
        parentMenu: { name: 'productRequirementList', title: '添加商情' }
      }
    },
    {
      path: 'product_requirement_edit/:id',
      name: 'productRequirementEdit',
      icon: 'stats-bars',
      component: productRequirementEdit,
      hidden: true,
      meta: {
        activeMenu: 'productRequirementList', title: '商情编辑', parentMenu: { name: 'productRequirementList', title: '商情编辑' }
      }
    },
    /* {path: 'product_service_list', name: 'productServiceList', icon: 'stats-bars', component: productServiceList, meta: {activeMenu: 'productServiceList', title: '货物供给'}},
     {
     path: 'product_service_add/:productType',
     name: 'productServiceAdd',
     icon: 'stats-bars',
     hidden: true,
     component: productServiceAdd,
     meta: {activeMenu: 'productServiceList', title: '添加供给', parentMenu: {name: 'productServiceList', title: '货物供给'}}
     },
     {
     path: 'product_service_edit/:id',
     name: 'productServiceEdit',
     icon: 'stats-bars',
     component: productRequirementEdit,
     hidden: true,
     meta: {
     activeMenu: 'productServiceList', title: '编辑需求', parentMenu: {name: 'productServiceList', title: '货物供给'}
     }
     },
     {path: 'truck_requirement_list', name: 'truckRequirementList', icon: 'stats-bars', component: truckRequirementList, meta: {activeMenu: 'truckRequirementList', title: '车辆需求'}},
     {
     path: 'truck_requirement_add/:productType',
     name: 'truckRequirementAdd',
     icon: 'stats-bars',
     component: productRequirementAdd,
     hidden: true,
     meta: {activeMenu: 'truckRequirementList', title: '添加需求', parentMenu: {name: 'truckRequirementList', title: '车辆需求'}}
     },
     {
     path: 'truck_requirement_edit/:id',
     name: 'truckRequirementEdit',
     icon: 'stats-bars',
     component: productRequirementEdit,
     hidden: true,
     meta: {
     activeMenu: 'truckRequirementList', title: '编辑需求', parentMenu: {name: 'truckRequirementList', title: '车辆需求'}
     }
     },
     {path: 'truck_service_list', name: 'truckServiceList', icon: 'stats-bars', component: truckServiceList, meta: {activeMenu: 'truckServiceList', title: '车辆供给'}},
     {
     path: 'truck_service_add/:productType',
     name: 'truckServicetAdd',
     icon: 'stats-bars',
     component: productServiceAdd,
     hidden: true,
     meta: {activeMenu: 'truckServiceList', title: '添加供给', parentMenu: {name: 'truckServiceList', title: '车辆供给'}}
     },
     {
     path: 'truck_service_edit/:id',
     name: 'truckServicetEdit',
     icon: 'stats-bars',
     component: productRequirementEdit,
     hidden: true,
     meta: {
     activeMenu: 'truckServiceList', title: '编辑需求', parentMenu: {name: 'truckServiceList', title: '车辆供给'}
     }
     },
     {path: 'container_requirement_list', name: 'containerRequirementList', icon: 'stats-bars', component: containerRequirementList, meta: {activeMenu: 'containerRequirementList', title: '集装箱需求'}},
     {
     path: 'container_requirement_add/:productType',
     name: 'containerRequirementAdd',
     icon: 'stats-bars',
     component: productRequirementAdd,
     hidden: true,
     meta: {activeMenu: 'containerRequirementList', title: '添加需求', parentMenu: {name: 'containerRequirementList', title: '集装箱需求'}}
     },
     {
     path: 'container_requirement_edit/:id',
     name: 'containerRequirementEdit',
     icon: 'stats-bars',
     component: productRequirementEdit,
     hidden: true,
     meta: {
     activeMenu: 'containerRequirementList', title: '编辑需求', parentMenu: {name: 'containerRequirementList', title: '集装箱需求'}
     }
     },
     {path: 'container_service_list', name: 'containerServiceList', icon: 'stats-bars', component: containerServiceList, meta: {activeMenu: 'containerServiceList', title: '集装箱供给'}},
     {
     path: 'container_service_add/:productType',
     name: 'containerServiceAdd',
     icon: 'stats-bars',
     component: productServiceAdd,
     hidden: true,
     meta: {activeMenu: 'containerServiceList', title: '添加供给', parentMenu: {name: 'containerServiceList', title: '集装箱供给'}}
     },
     {
     path: 'container_service_edit/:id',
     name: 'containerServiceEdit',
     icon: 'stats-bars',
     component: productRequirementEdit,
     hidden: true,
     meta: {
     activeMenu: 'containerServiceList', title: '编辑需求', parentMenu: {name: 'containerServiceList', title: '集装箱供给'}
     }
     }, */
    {
      path: 'billing_list',
      name: 'billingList',
      icon: 'stats-bars',
      component: billingList,
      meta: { activeMenu: 'billingList', title: '招标公告' }
    },
    {
      path: 'billing_add',
      name: 'billingAdd',
      icon: 'stats-bars',
      component: billingAdd,
      hidden: true,
      meta: {
        activeMenu: 'billingList', title: '添加招标公告', parentMenu: { name: 'billingList', title: '招标公告' }
      }
    },
    {
      path: 'billing_edit/:id',
      name: 'billingEdit',
      icon: 'stats-bars',
      component: billingEdit,
      hidden: true,
      meta: {
        activeMenu: 'billingList', title: '编辑招标公告', parentMenu: { name: 'billingList', title: '招标公告' }
      }
    }
  ]
}
backEndRouter.children.push(productRequirementRouter)
/* 商情信息发布 end */
/* 场站管理 star */
let stationCntrolRouter = {
  path: 'station_control',
  name: 'stationControl',
  redirect: 'station_control/fleet_list',
  icon: 'android-list',
  meta: { role: ['到站'], activeMenu: 'stationControl', title: '车队管理' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'fleet_list',
      name: 'fleetList',
      icon: 'stats-bars',
      component: fleetList,
      meta: { activeMenu: 'fleetList', title: '车队列表' }
    },
    {
      path: 'receiver_manger',
      name: 'receiverManager',
      icon: 'stats-bars',
      component: receiverManager,
      meta: { activeMenu: 'receiverManager', title: '收货人管理' }
    }
  ]
}
backEndRouter.children.push(stationCntrolRouter)
/* 场站管理 end */
/* 运输资源管理 star */
let fleetControlRouter = {
  path: 'fleet_control',
  name: 'fleetControl',
  redirect: 'fleet_control/truck_list',
  icon: 'android-list',
  meta: { role: ['车队'], activeMenu: 'fleetControl', title: '运输资源管理' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'truck_list',
      name: 'truckList',
      icon: 'stats-bars',
      component: truckList,
      meta: { activeMenu: 'truckList', title: '车辆列表' }
    },
    {
      path: 'driver_list',
      name: 'driverList',
      icon: 'stats-bars',
      component: driverList,
      meta: { activeMenu: 'driverList', title: '司机列表' }
    },
    {
      path: 'ability_list',
      name: 'abilityList',
      icon: 'stats-bars',
      component: abilityList,
      meta: { activeMenu: 'abilityList', title: '能力排行' }
    },
    {
      path: 'receiver_list',
      name: 'receiverList',
      icon: 'stats-bars',
      component: receiverList,
      meta: { activeMenu: 'receiverList', title: '收货人管理' }
    },
    {
      path: 'driver_current_position',
      name: 'driverCurrentPosition',
      icon: 'stats-bars',
      component: driverCurrentPosition,
      meta: { activeMenu: 'driverCurrentPosition', title: '司机位置' }
    },
    {
      path: 'truck_current_position',
      name: 'truckCurrentPosition',
      icon: 'stats-bars',
      component: truckCurrentPosition,
      meta: { activeMenu: 'truckCurrentPosition', title: '车辆位置' }
    }
  ]
}
backEndRouter.children.push(fleetControlRouter)
/* 运输资源管理 end */
/* 箱东管理 star */
let containerControlRouter = {
  path: 'container_control',
  name: 'containerControl',
  redirect: 'container_control/container_list',
  icon: 'android-list',
  meta: { role: ['箱东'], activeMenu: 'containerControl', title: '箱东管理' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'container_list',
      name: 'containerList',
      icon: 'stats-bars',
      component: containerList,
      meta: { activeMenu: 'containerList', title: '箱子列表' }
    }
  ]
}
backEndRouter.children.push(containerControlRouter)
/* 箱东管理 end */
/* 业务报表 star */
let orderLiquidationRouter = {
  path: 'order_liquidation',
  name: 'orderLiquidation',
  icon: 'stats-bars',
  component: orderReport,
  meta: { role: ['矿企', '电厂', '到站', '车队'], activeMenu: 'orderLiquidation', title: '业务报表' }
}
let orderLiquidationNewRouter = {
  path: 'order_liquidation_new',
  name: 'orderLiquidationNew',
  icon: 'stats-bars',
  component: orderReportNew,
  meta: { role: ['矿企', '电厂', '到站', '车队'], activeMenu: 'orderLiquidationNew', title: '新业务报表' }
}
let orderLiquidationSHZRouter = {
  path: 'order_liquidation_shz',
  name: 'orderLiquidationSHZ',
  icon: 'stats-bars',
  component: orderReportSHZ,
  meta: { role: ['矿企', '电厂', '到站', '车队'], activeMenu: 'orderLiquidationSHZ', title: '通用业务报表' }
}
// let orderLiquidationStationRouter = {
//   path: 'order_liquidation_station', name: 'orderLiquidationStation', icon: 'stats-bars', component: orderReportStation, meta: {role: ['矿企', '电厂', '到站', '车队'], activeMenu: 'orderLiquidationStation', title: '场站报表'},
// }
let orderLiquidationStationRouter = {
  path: 'order_liquidation_station',
  name: 'orderLiquidationStation',
  redirect: 'order_liquidation_station/order_report_input',
  icon: 'stats-bars',
  meta: { role: ['矿企', '电厂', '到站', '车队'], activeMenu: 'orderLiquidation', title: '报表' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'order_report_station',
      name: 'orderLiquidationStation',
      icon: 'stats-bars',
      component: orderReportStation,
      meta: { activeMenu: 'orderReportStation', title: '报表' }
    },
    {
      path: 'order_report_input',
      name: 'orderReportInput',
      icon: 'stats-bars',
      component: orderReportInput,
      meta: { activeMenu: 'orderReportInput', title: '数据录入表' }
    },
    {
      path: 'order_details',
      name: 'orderDetails',
      icon: 'stats-bars',
      component: orderDetails,
      meta: { activeMenu: 'orderDetails', title: '汇总查询表' }
    },
    {
      path: 'order_month',
      name: 'orderMonth',
      icon: 'stats-bars',
      component: orderMonth,
      meta: { activeMenu: 'orderMonth', title: '生产统计表' }
    },
    {
      path: 'order_zxstatement',
      name: 'orderZxstatement',
      icon: 'stats-bars',
      component: orderZxstatement,
      meta: { activeMenu: 'orderZxstatement', title: '装卸费结算签认表' }
    },
    {
      path: 'order_month_detail',
      name: 'orderMonthDetail',
      icon: 'stats-bars',
      component: orderMonthDetail,
      meta: { activeMenu: 'orderMonthDetail', title: '实际结算到发量统计表' }
    },
    {
      path: 'order_all_statistics',
      name: 'orderAllStatistics',
      icon: 'stats-bars',
      component: orderAllStatistics,
      meta: { activeMenu: 'orderAllStatistics', title: '生产明细表' }
    }
  ]
}
// let stationCntrolRouter = {
//   path: 'station_control',
//   name: 'stationControl',
//   redirect: 'station_control/fleet_list',
//   icon: 'android-list',
//   meta: {role: ['到站'], activeMenu: 'stationControl', title: '车队管理'},
//   component: {
//     render (c) {
//       return c('router-view')
//     }
//   },
//   children: [
//     {path: 'fleet_list', name: 'fleetList', icon: 'stats-bars', component: fleetList, meta: {activeMenu: 'fleetList', title: '车队列表'}},
//     {path: 'receiver_manger', name: 'receiverManager', icon: 'stats-bars', component: receiverManager, meta: {activeMenu: 'receiverManager', title: '收货人管理'}}
//   ]
// }
let orderLiquidationFleetRouter = {
  path: 'order_liquidation_fleet',
  name: 'orderLiquidationFleet',
  icon: 'stats-bars',
  component: orderReportFleet,
  meta: { role: ['矿企', '电厂', '到站', '车队'], activeMenu: 'orderLiquidationFleet', title: '车队报表' }
}
let orderLiquidationForFleetRouter = {
  path: 'order_liquidation_for_fleet',
  name: 'orderLiquidationForFleet',
  icon: 'stats-bars',
  component: orderReportForFleet,
  meta: { activeMenu: 'orderLiquidationForFleet', title: '车队报表V3' }
}
backEndRouter.children.push(orderLiquidationRouter)
backEndRouter.children.push(orderLiquidationNewRouter)
backEndRouter.children.push(orderLiquidationSHZRouter)
backEndRouter.children.push(orderLiquidationStationRouter)
backEndRouter.children.push(orderLiquidationFleetRouter)
backEndRouter.children.push(orderLiquidationForFleetRouter)
/* 业务报表 end */
/* 库存信息 star */
let inventoryRouter = {
  path: 'inventory',
  name: 'inventory',
  redirect: 'inventory/container_list',
  icon: 'android-list',
  meta: { role: ['电厂'], activeMenu: 'inventory', title: '库存信息' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'inventory_info',
      name: 'inventoryInfo',
      icon: 'stats-bars',
      component: inventoryInfo,
      meta: { role: ['电厂'], activeMenu: 'inventoryInfo', title: '库存信息' }
    },
    {
      path: 'inventory_info_center',
      name: 'inventoryInfoCenter',
      icon: 'stats-bars',
      component: inventoryInfoCenter,
      meta: { role: ['货运中心'], activeMenu: 'inventoryInfoCenter', title: '库存信息' }
    },
    {
      path: 'inventory_info_c',
      name: 'inventoryInfoC',
      icon: 'stats-bars',
      component: inventoryInfoC,
      meta: { role: ['货运处'], activeMenu: 'inventoryInfoC', title: '库存信息' }
    }
  ]
}
backEndRouter.children.push(inventoryRouter)
/* 库存信息 end */
/* 对铁账户 star */
let railwayAccountRouter = {
  path: 'railway_account',
  name: 'railwayAccount',
  icon: 'stats-bars',
  component: railwayAccountList,
  meta: { role: ['矿企'], activeMenu: 'railwayAccount', title: '对铁账户' }
}
backEndRouter.children.push(railwayAccountRouter)
/* 对铁账户 end */
/* 值班操作 star */
let dutyRoomRouter = {
  path: 'duty_room',
  name: 'dutyRoom',
  redirect: 'duty_room/dutyRoomIndex',
  icon: 'stats-bars',
  meta: { activeMenu: 'dutyRoom', title: '值班操作' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    { path: 'dutyRoomIndex', name: 'dutyRoomIndex', icon: 'stats-bars', component: dutyRoom, meta: { activeMenu: 'dutyRoomIndex', title: '值班操作' } },
    { path: 'mainOrderDutyRoom', name: 'mainOrderDutyRoom', icon: 'stats-bars', component: mainOrderDutyRoom, meta: { activeMenu: 'mainOrderDutyRoom', title: '值班操作' } },
    { path: 'subOrderRecordRoom', name: 'subOrderRecordRoom', icon: 'stats-bars', component: subOrderRecordRoom, meta: { activeMenu: 'subOrderRecordRoom', title: '补录操作' } },
    { path: 'dutyRoomStatistics', name: 'dutyRoomStatistics', icon: 'stats-bars', component: dutyRoomStatistics, meta: { activeMenu: 'dutyRoomStatistics', title: '值班统计' } }
  ]
}
backEndRouter.children.push(dutyRoomRouter)
/* 值班操作 end */
/* 空箱回送 star */
let railwayEmptyContainerRouter = {
  path: 'railway_empty_container',
  name: 'railwayEmptyContainer',
  icon: 'stats-bars',
  component: railwayEmptyContainerList,
  meta: { activeMenu: 'railwayEmptyContainer', title: '空箱回送' }
}
backEndRouter.children.push(railwayEmptyContainerRouter)
/* 空箱回送 end */
/* 管理子用户 star */
let managerUserRouter = {
  path: 'manager_user',
  name: 'managerUser',
  icon: 'stats-bars',
  component: managerUser,
  meta: { activeMenu: 'managerUser', title: '管理子用户' }
}
backEndRouter.children.push(managerUserRouter)
/* 管理子用户 end */
/* 场站点亮 star */
let lightStationRouter = {
  path: 'light_station',
  name: 'lightStation',
  icon: 'stats-bars',
  component: lightStation,
  meta: { activeMenu: 'lightStation', title: '场站点亮计划' }
}
backEndRouter.children.push(lightStationRouter)
/* 场站车队管理 star */
let stationFleetControlRouter = {
  path: 'station_fleet_control',
  name: 'stationFleetControl',
  icon: 'stats-bars',
  component: stationFleetControl,
  meta: { activeMenu: 'stationFleetControl', title: '场站车队管理' }
}
backEndRouter.children.push(stationFleetControlRouter)
/* 场站车队管理 */
/* 接取业务 star */
let fetchingBusinessRouter = {
  path: 'fetching_business',
  name: 'fetchingBusiness',
  redirect: 'fetching_business/fetching_business_station',
  icon: 'android-list',
  meta: { role: ['场站', '车队'], activeMenu: 'mainOrder', title: '接取业务' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    {
      path: 'fetching_business_station',
      name: 'fetchingBusinessStation',
      icon: 'stats-bars',
      component: fetchingBusinessStation,
      meta: { role: ['场站'], activeMenu: 'fetchingBusinessStation', title: '场站接取' }
    },
    {
      path: 'fetching_business_fleet',
      name: 'fetchingBusinessFleet',
      icon: 'stats-bars',
      component: fetchingBusinessFleet,
      meta: { role: ['车队'], activeMenu: 'fetchingBusinessFleet', title: '车队接取' }
    }
  ]
}
backEndRouter.children.push(fetchingBusinessRouter)
/* 接取业务 end */
/* 用户中心 star */
let userCenterRouter = {
  path: 'user_center',
  name: 'userCenter',
  component: userCenter,
  icon: 'speedometer',
  hidden: true,
  meta: { role: [], activeMenu: 'userCenter', title: '用户中心' }
}
backEndRouter.children.push(userCenterRouter)
/* 集装箱管理 star */
let containerManagementRouter = {
  path: 'container_management',
  name: 'containerManagement',
  redirect: 'container_management/container_logistics_monitoring',
  icon: 'android-list',
  meta: { activeMenu: 'containerManagement', title: '箱情观察' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    { path: 'container_logistics_monitoring', name: 'containerLogisticsMonitoring', icon: 'stats-bars', component: containerLogisticsMonitoring, meta: { activeMenu: 'containerLogisticsMonitoring', title: '箱情观察' } },
    {
      path: 'overTimeWarning',
      name: 'overTimeWarning',
      icon: 'stats-bars',
      component: overTimeWarning,
      meta: { activeMenu: 'overTimeWarning', title: '超时预警' }
    },
    {
      path: 'overQuantityWarning',
      name: 'overQuantityWarning',
      icon: 'stats-bars',
      component: overQuantityWarning,
      meta: { activeMenu: 'overQuantityWarning', title: '超量预警' }
    },
    { path: 'flowReport', name: 'flowReport', icon: 'stats-bars', component: flowReport, meta: { activeMenu: 'flowReport', title: '效率分析' } }
  ]
}
backEndRouter.children.push(containerManagementRouter)
/* 集装箱管理 3.0 end */
/* 集装箱管理 star */
let containerSourceRouter = {
  path: 'containerSource',
  name: 'containerSource',
  redirect: 'containerSource/container_platform_container_list',
  icon: 'android-list',
  meta: { activeMenu: 'containerManagement', title: '集装箱管理' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    { path: 'container_platform_container_list', name: 'containerPlatformContainerList', icon: 'stats-bars', component: containerPlatformContainerList, meta: { activeMenu: 'containerPlatformContainerList', title: '箱情观察' } }
  ]
}
backEndRouter.children.push(containerSourceRouter)
/* 集装箱管理 3.0 end */
/* 集装箱报表 star */
let containerReportMenuRouter = {
  path: 'container_report_menu',
  name: 'containerReportMenu',
  redirect: 'container_report_menu/container_report',
  icon: 'android-list',
  meta: { activeMenu: 'containerManagement', title: '集装箱报表' },
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [
    { path: 'container_report', name: 'containerReport', icon: 'stats-bars', component: containerReport, meta: { activeMenu: 'containerReport', title: '箱情报表' } }
  ]
}
backEndRouter.children.push(containerReportMenuRouter)
/* 集装箱报表 3.0 end */
/* 用户中心 star */
let UserAddressRouter = {
  path: 'user_Address_List',
  name: 'userAddressList',
  redirect: 'user_Address_List/userAddressManager',
  component: {
    render (c) {
      return c('router-view')
    }
  },
  icon: 'speedometer',
  hidden: true,
  meta: { role: [], activeMenu: 'userAddressList', title: '地址管理' },
  children: [
    {
      path: 'userAddressManager',
      name: 'userAddressList',
      icon: 'stats-bars',
      component: userAddressManager,
      meta: { activeMenu: 'userAddressList', title: '地址管理' }
    }
  ]
}
backEndRouter.children.push(UserAddressRouter)
routers.push(backEndRouter)
export default routers
